/**
 * Created by IntelliJ IDEA.
 * User: alexander
 * Date: 13.09.11
 * Time: 11:08
 * To change this template use File | Settings | File Templates.
 */
package com.etc {
import flash.display.Graphics;
import flash.display.Sprite;

public class Utils {
	public function Utils() {
	}

	public static function round( r: Number, c: Number ): Sprite{
		var round: Sprite = new Sprite();
		var g:Graphics = round.graphics;
		// outher
		g.beginFill(c);
		g.drawCircle(0,0,r);
		g.endFill();
		return round;
	}

	public static function rect( w: Number, h: Number,  c: Number ): Sprite{
		var square: Sprite = new Sprite();
		var g:Graphics = square.graphics;
		// outher
		g.beginFill(c);
		g.drawRect(-w/2,-h/2,w,h);
		g.endFill();
		return square;
	}

}
}
